package com.jdz.gxq.info.admin.landclear.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.jdz.gxq.info.admin.landclear.bo.Landclear;
import com.jdz.gxq.info.admin.landclear.form.EditLandclearForm;
import com.jdz.gxq.info.admin.landclear.service.LandclearService;
import com.jdz.gxq.info.common.action.CommonAction;

public class EditLandclearAction extends CommonAction {

	private LandclearService landclearService = null;
	 
	public ActionForward doExecute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws java.lang.Exception {
		
		EditLandclearForm editLandclearForm = (EditLandclearForm) form;
	
		Landclear landclear = landclearService.getLandclearById(editLandclearForm.getId());
		
		editLandclearForm.setLandclear(landclear);

		return mapping.findForward("success");
	}

	public void setLandclearService(LandclearService landclearService) {
		this.landclearService = landclearService;
	}
}

